package com.cby.springboot.demo.service;

import com.cby.springboot.demo.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LibraryService {

    int updateBook(Book book);

    int addBook(Book book);

    int deleteById(@Param("id") int id);

    List<Book> list();

    List<Book> findAllByCategory(int id);

    List<Book> findAllByTitleLikeOrAuthorLike(String title, String author);
}
